package com.sumapay.fsb.common.util;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Collections;
import java.util.List;


public class CommonPage<T> {



    /**
     * 查询数据列表
     */
    @JSONField(name="RESULT_LIST")
    protected List<T> records = Collections.emptyList();

    /**
     * 总数
     */
    @JSONField(name="TOTAL_MUM")
    private String total ;

    /**
     * 总页数
     */
    @JSONField(name="TOTAL_PAGE")
    private String pages ;

    /**
     * 每页显示条数，默认 10
     */
    @JSONField(name="PAGE_SIZE")
    private String size ;

    /**
     * 当前页
     */
    @JSONField(name="CURRENT_PAGE")
    private String current ;

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getPages() {
        return pages;
    }

    public void setPages(String pages) {
        this.pages = pages;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getCurrent() {
        return current;
    }

    public void setCurrent(String current) {
        this.current = current;
    }

    public int getACTION_RESULT() {
        return ACTION_RESULT;
    }

    public void setACTION_RESULT(int ACTION_RESULT) {
        this.ACTION_RESULT = ACTION_RESULT;
    }

    @JSONField(name="ACTION_RESULT")
    private int ACTION_RESULT = 1;


}
